package cn.wolfcode.wolf2w.redis.impl;

import cn.wolfcode.wolf2w.redis.ITestDestinationRedisService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.data.redis.core.RedisTemplate;
import org.springframework.data.redis.core.StringRedisTemplate;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Set;

@Service
public class TestDistenationRedisServiceImpl implements ITestDestinationRedisService {
    @Autowired
    private StringRedisTemplate redisTemplate;

    @Override
    public Set<String> getValue(String key){
        return redisTemplate.keys(key);
    }
}
